package org.elanfox.intellicommunity.biz.service.core.resident;


import org.elanfox.intellicommunity.biz.entity.resident.WorkerPO;
import org.elanfox.intellicommunity.data.base.base.SearchableCrudService;

import java.util.List;

/**
 * 住户service
 *
 * @author guomw
 * @date 2018/9/14
 */
public interface WorkerService extends SearchableCrudService<WorkerPO, Integer> {
    /**
     * @param orgId
     * @return
     */
    long countByOrgId(Integer orgId);

    /**
     * 得到所有的管家
     *
     * @return
     */
    List<WorkerPO> findAllSteward();

    /**
     * 得到所有有定位的管家
     *
     * @return
     */
    List<WorkerPO> findStewardsInLocator();

    List<WorkerPO> findWorkerByStructureId(Integer strId);
}
